package com.boarsoft.message.jms;

import javax.jms.Session;

import com.boarsoft.message.bean.Message;

public interface JmsMsgConverter {
	/**
	 * 
	 * @param session
	 * @param m
	 * @return
	 * @throws Exception 
	 */
	javax.jms.Message convert(Session session, Message m) throws Exception;

	/**
	 * 
	 * @param m
	 * @return
	 * @throws Exception 
	 */
	Message convert(javax.jms.Message m) throws Exception;
}
